#ifndef __UART_H
#define __UART_H



int uart_dev_init();
int uart_cmd_read(char *buf, int len);
void uart_cmd_write(char *buf, int len);
int uart_rs485_read(char *buf, int len);
void uart_rs485_write(char *buf, int len);
int uart_cmd(char *cmd, char *ack, int timeout);
void uart_cmd_flush();
void uart_cmd_open();
void uart_cmd_close();
int uart_rs485_read_timeout(char *buf, int len, int timeout);


#endif


